import 'package:flutter/material.dart';
import 'package:ft_web/pages/home_page.dart';
import 'package:ft_web/widgets/web_header.dart';

class MainTab extends StatefulWidget {
  MainTab({Key key}) : super(key: key);

  @override
  _MainTabState createState() => _MainTabState();
}

class _MainTabState extends State<MainTab> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: SingleChildScrollView(
          child: Column(
            children: [
              WebHeader(),
              IndexedStack(
                index: 1,
                children: [
                  HomePage(title: '1'),
                  HomePage(title: '2'),
                  HomePage(title: '3'),
                  HomePage(title: '4'),
                  HomePage(title: '5'),
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}